package com.itheima.ClassTest;

public class test1 {
    public static void main(String[] args) {
        String s1 ="abc";
        String s2 ="abc";
        System.out.println(s1==s2);
        String s3 = new String("abc");
        System.out.println(s1==s3);
        char[] arr = {'a','b','c'};
        String s4 = new String(arr);
        System.out.println(s1==s4);
        String s5 = "ab";
        String s6 = s5+"c";
        System.out.println(s1==s6);
        String s7 = "a"+"b"+"c";
        System.out.println(s1==s7);
    }
}
